﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200117D RID: 4477
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetNicknameCsReq : IMessage<SetNicknameCsReq>, IMessage, IEquatable<SetNicknameCsReq>, IDeepCloneable<SetNicknameCsReq>, IBufferMessage
	{
		// Token: 0x1700389E RID: 14494
		// (get) Token: 0x0600C856 RID: 51286 RVA: 0x0021BE08 File Offset: 0x0021A008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetNicknameCsReq> Parser
		{
			get
			{
				return SetNicknameCsReq._parser;
			}
		}

		// Token: 0x1700389F RID: 14495
		// (get) Token: 0x0600C857 RID: 51287 RVA: 0x0021BE0F File Offset: 0x0021A00F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetNicknameCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170038A0 RID: 14496
		// (get) Token: 0x0600C858 RID: 51288 RVA: 0x0021BE21 File Offset: 0x0021A021
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetNicknameCsReq.Descriptor;
			}
		}

		// Token: 0x0600C859 RID: 51289 RVA: 0x0021BE28 File Offset: 0x0021A028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetNicknameCsReq()
		{
		}

		// Token: 0x0600C85A RID: 51290 RVA: 0x0021BE3B File Offset: 0x0021A03B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetNicknameCsReq(SetNicknameCsReq other) : this()
		{
			this.nickname_ = other.nickname_;
			this.isModify_ = other.isModify_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C85B RID: 51291 RVA: 0x0021BE6C File Offset: 0x0021A06C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetNicknameCsReq Clone()
		{
			return new SetNicknameCsReq(this);
		}

		// Token: 0x170038A1 RID: 14497
		// (get) Token: 0x0600C85C RID: 51292 RVA: 0x0021BE74 File Offset: 0x0021A074
		// (set) Token: 0x0600C85D RID: 51293 RVA: 0x0021BE7C File Offset: 0x0021A07C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Nickname
		{
			get
			{
				return this.nickname_;
			}
			set
			{
				this.nickname_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170038A2 RID: 14498
		// (get) Token: 0x0600C85E RID: 51294 RVA: 0x0021BE8F File Offset: 0x0021A08F
		// (set) Token: 0x0600C85F RID: 51295 RVA: 0x0021BE97 File Offset: 0x0021A097
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsModify
		{
			get
			{
				return this.isModify_;
			}
			set
			{
				this.isModify_ = value;
			}
		}

		// Token: 0x0600C860 RID: 51296 RVA: 0x0021BEA0 File Offset: 0x0021A0A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetNicknameCsReq);
		}

		// Token: 0x0600C861 RID: 51297 RVA: 0x0021BEB0 File Offset: 0x0021A0B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetNicknameCsReq other)
		{
			return other != null && (other == this || (!(this.Nickname != other.Nickname) && this.IsModify == other.IsModify && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C862 RID: 51298 RVA: 0x0021BF00 File Offset: 0x0021A100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Nickname.Length != 0)
			{
				num ^= this.Nickname.GetHashCode();
			}
			if (this.IsModify)
			{
				num ^= this.IsModify.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C863 RID: 51299 RVA: 0x0021BF5A File Offset: 0x0021A15A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C864 RID: 51300 RVA: 0x0021BF62 File Offset: 0x0021A162
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C865 RID: 51301 RVA: 0x0021BF6C File Offset: 0x0021A16C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsModify)
			{
				output.WriteRawTag(24);
				output.WriteBool(this.IsModify);
			}
			if (this.Nickname.Length != 0)
			{
				output.WriteRawTag(90);
				output.WriteString(this.Nickname);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C866 RID: 51302 RVA: 0x0021BFCC File Offset: 0x0021A1CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Nickname.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Nickname);
			}
			if (this.IsModify)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C867 RID: 51303 RVA: 0x0021C01C File Offset: 0x0021A21C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetNicknameCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Nickname.Length != 0)
			{
				this.Nickname = other.Nickname;
			}
			if (other.IsModify)
			{
				this.IsModify = other.IsModify;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C868 RID: 51304 RVA: 0x0021C071 File Offset: 0x0021A271
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C869 RID: 51305 RVA: 0x0021C07C File Offset: 0x0021A27C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Nickname = input.ReadString();
					}
				}
				else
				{
					this.IsModify = input.ReadBool();
				}
			}
		}

		// Token: 0x0400506B RID: 20587
		private static readonly MessageParser<SetNicknameCsReq> _parser = new MessageParser<SetNicknameCsReq>(() => new SetNicknameCsReq());

		// Token: 0x0400506C RID: 20588
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400506D RID: 20589
		public const int NicknameFieldNumber = 11;

		// Token: 0x0400506E RID: 20590
		private string nickname_ = "";

		// Token: 0x0400506F RID: 20591
		public const int IsModifyFieldNumber = 3;

		// Token: 0x04005070 RID: 20592
		private bool isModify_;
	}
}
